<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
        "http://www.w3.org/TR/html4/strict.dtd">

<title>Dojo: test of Parse.js and the &lt;propertyset&gt; tag</title>

<script type="text/javascript"> var djConfig = {isDebug: true}; </script>
<script type="text/javascript" src="../../dojo.js"></script>
<script type="text/javascript">
	dojo.require("dojo.xml.Parse");
	dojo.require("dojo.widget.Widget");
	dojo.require("dojo.widget.Parse");
</script>

<style type="text/css">
	#output {
		font-family:monospace;
		border: 3px solid #000000;
	}
</style>

<script type="text/javascript">
	// register a new do-nothing tag
	dojo.widget.tags["dojo:donothing"] = function(frag, parser){
		var properties = parser.parseProperties(frag["dojo:donothing"]);
		// now that we've pulled in the propsets that should apply to
		// this tag, lets inspect them
		testPropsets(properties);
	}

	function testPropsets(props){
		for(var x in props){ alert("x: "+x); }
		/*
		alert(props.foo=="bar");
		alert(props["dojo:baz"]);
		*/
	}
</script>

<div dojoType="propertyset" foo="bar">
	<div dojoType="baz" quux="xyzzy"></div>
</div>
<div dojoType="donothing" test="foo"></div>
